<div class=" mod-cont">
            <div class="table">
                    <table cellpadding="3" cellspacing="3" border="0" width="100%">
                    	<tr>
                   	  <th>Tên dịch vụ</th>
       	                    <th  width="25%">Giá</th>
                            <th width="15%">Lượt thuê</th>
                            <th width="15%">Thực hiện</th>
                      </tr>
                    </table>
           	</div>
            <?php foreach($model as $row):?>
            <div class="table">
                    <table cellpadding="3" cellspacing="3" border="0" width="100%">
                      <tr>
                        <td> 
                            <a href="index.php?r=service/create/view&id=<?php echo $row->id; ?>">
                            <!--Ten dịch vụ-->
                            <?php echo $row->name;?>
                            </a>
                        </td>
                        <td width="25%" align="center">
                            <!--Gia dịch vụ-->
                            <?php echo $row->money . "$";?>
                        </td>
                        <td width="15%" align="center">
                            <!--Lượt thuê-->
                            <?php 
                                echo BidService::countBid($row->id). " lượt";
                            ?>
                        </td>
                        <td width="15%" align="center">
                            <!--Thực hiện-->
                            <?php echo $row->completiondate. " ngày" ;?>
                        </td>
                      </tr>
                    </table>
           	</div>
            <?php endforeach;?>
            <br />
            <span>
                        <a href="index.php?r=service/show"> <!--bid-->
                        <input type="button" value="Xem thêm"/>
                        </a>
            </span>
</div>